home *** CD-ROM | disk | FTP | other *** search
/ CU Amiga Super CD-ROM 16 / CU Amiga Magazine's Super CD-ROM 16 (1997-10-16)(EMAP Images)(GB)[!][issue 1997-11].iso / CUCD / Graphics / Ghostscript / source / winlib.mak < prev    next >
Encoding:
Text File  |  1997-07-18  |  3.6 KB  |  126 lines

  1. #    Copyright (C) 1991-1997 Aladdin Enterprises.  All rights reserved.
  2. # This file is part of Aladdin Ghostscript.
  3. # Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND.  No author
  4. # or distributor accepts any responsibility for the consequences of using it,
  5. # or for whether it serves any particular purpose or works at all, unless he
  6. # or she says so in writing.  Refer to the Aladdin Ghostscript Free Public
  7. # License (the "License") for full details.
  8. # Every copy of Aladdin Ghostscript must include a copy of the License,
  9. # normally in a plain ASCII text file named PUBLIC.  The License grants you
  10. # the right to copy, modify and redistribute Aladdin Ghostscript, but only
  11. # under certain conditions described in the License.  Among other things, the
  12. # License requires that the copyright notice and this notice be preserved on
  13. # all copies.
  14.  
  15. # Common makefile section for 32-bit MS Windows.
  16.  
  17. # This makefile must be acceptable to Microsoft Visual C++, Watcom C++,
  18. # and Borland C++.  For this reason, the only conditional directives
  19. # allowed are !if[n]def, !else, and !endif.
  20.  
  21.  
  22. # Note that built-in libpng and zlib aren't available.
  23.  
  24. SHARE_LIBPNG=0
  25. SHARE_ZLIB=0
  26.  
  27. # Define the platform name.
  28.  
  29. !ifndef PLATFORM
  30. PLATFORM=mswin32_
  31. !endif
  32.  
  33. # Define the ANSI-to-K&R dependency.  Borland C, Microsoft C and
  34. # Watcom C all accept ANSI syntax, but we need to preconstruct ccf32.tr 
  35. # to get around the limit on the maximum length of a command line.
  36.  
  37. AK=ccf32.tr
  38.  
  39. # Define the syntax for command, object, and executable files.
  40.  
  41. CMD=.bat
  42. O=-o
  43. OBJ=obj
  44. XE=.exe
  45. XEAUX=.exe
  46.  
  47. # Define generic commands.
  48.  
  49. # We have to use a batch file for the equivalent of cp,
  50. # because the DOS COPY command copies the file write time, like cp -p.
  51. CP_=call cp.bat
  52. RM_=erase
  53. RMN_=call rm.bat
  54.  
  55. # Define the generic compilation flags.
  56.  
  57. PLATOPT=
  58.  
  59. INTASM=
  60. PCFBASM=
  61.  
  62. # Define the files to be removed by `make clean'.
  63. # nmake expands macros when encountered, not when used,
  64. # so this must precede the !include statements.
  65.  
  66. BEGINFILES=gs*.res gs*.ico ccf32.tr\
  67.    $(GSDLL).dll $(GSCONSOLE).exe\
  68.    $(BEGINFILES2)
  69.  
  70. # Include the generic makefiles.
  71. !include version.mak
  72. !include gs.mak
  73. !include lib.mak
  74. !include jpeg.mak
  75. !include libpng.mak
  76. !include zlib.mak
  77. !include devs.mak
  78.  
  79. # -------------------------- Auxiliary programs --------------------------- #
  80.  
  81. $(ECHOGS_XE): echogs.c
  82.     $(CCAUX_SETUP)
  83.     $(CCAUX) echogs.c $(CCAUX_TAIL)
  84.  
  85. # $(GENARCH_XE) is in individual (compiler-specific) makefiles.
  86.  
  87. $(GENCONF_XE): genconf.c $(stdpre_h)
  88.     $(CCAUX_SETUP)
  89.     $(CCAUX) genconf.c $(CCAUX_TAIL)
  90.  
  91. $(GENINIT_XE): geninit.c $(stdio__h) $(string__h)
  92.     $(CCAUX_SETUP)
  93.     $(CCAUX) geninit.c $(CCAUX_TAIL)
  94.  
  95. # No special gconfig_.h is needed.
  96. # Assume `make' supports output redirection.
  97. gconfig_.h: $(MAKEFILE)
  98.     echo /* This file deliberately left blank. */ >gconfig_.h
  99.  
  100. gconfigv.h: $(MAKEFILE) $(ECHOGS_XE)
  101.     $(EXP)echogs -w gconfigv.h -x 23 define USE_ASM -x 2028 -q $(USE_ASM)-0 -x 29
  102.     $(EXP)echogs -a gconfigv.h -x 23 define USE_FPU -x 2028 -q $(FPU_TYPE)-0 -x 29
  103.     $(EXP)echogs -a gconfigv.h -x 23 define EXTEND_NAMES 0$(EXTEND_NAMES)
  104.  
  105.  
  106. # -------------------------------- Library -------------------------------- #
  107.  
  108. # The Windows Win32 platform
  109.  
  110. mswin32__=gp_mswin.$(OBJ) gp_msio.$(OBJ) gp_win32.$(OBJ) gp_nofb.$(OBJ) gp_ntfs.$(OBJ)
  111. mswin32_.dev: $(mswin32__)
  112.         $(SETMOD) mswin32_ $(mswin32__)
  113.         $(ADDMOD) mswin32_ -iodev wstdio
  114.  
  115. gp_mswin.$(OBJ): gp_mswin.c $(AK) gp_mswin.h \
  116.  $(ctype__h) $(dos__h) $(malloc__h) $(memory__h) $(string__h) $(windows__h) \
  117.  $(gx_h) $(gp_h) $(gpcheck_h) $(gserrors_h) $(gsexit_h)
  118.  
  119. gp_msio.$(OBJ): gp_msio.c $(AK) gp_mswin.h \
  120.  $(gsdll_h) $(stdio__h) $(gxiodev_h) $(stream_h) $(gx_h) $(gp_h) $(windows__h)
  121.  
  122. # end of winlib.mak
  123.